<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="inc/connmysql.jsp"%>
<%@ include file="utils/function.jsp"%>

<%
//这里面直接写业务逻辑代码

//shanchu数据到数据库
String number=request.getParameter("number");
PreparedStatement psmt=conn.prepareStatement("delete from information where number=?");
psmt.setString(1,number);
psmt.executeUpdate();

//软件重构：改善代码的既有设计
response.sendRedirect("main.jsp");
%>
<%@ include file="inc/connmysql_close.jsp"%>
